home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Classes / 2.0_nxyPalette1.2 / src / title.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-05-26  |  6.1 KB  |  175 lines

  1. /* title.c generated from title.psw
  2.    by unix pswrap V1.009  Wed Apr 19 17:50:24 PDT 1989
  3.  */
  4.  
  5. #include <dpsclient/dpsfriends.h>
  6. #include <string.h>
  7.  
  8. #line 1 "title.psw"
  9. #line 10 "title.c"
  10. void PSWTestTitle(float xscale, float yscale)
  11. {
  12.   typedef struct {
  13.     unsigned char tokenType;
  14.     unsigned char topLevelCount;
  15.     unsigned short nBytes;
  16.  
  17.     DPSBinObjGeneric obj0;
  18.     DPSBinObjReal obj1;
  19.     DPSBinObjReal obj2;
  20.     DPSBinObjGeneric obj3;
  21.     DPSBinObjGeneric obj4;
  22.     DPSBinObjGeneric obj5;
  23.     DPSBinObjGeneric obj6;
  24.     DPSBinObjGeneric obj7;
  25.     DPSBinObjGeneric obj8;
  26.     DPSBinObjGeneric obj9;
  27.     DPSBinObjGeneric obj10;
  28.     DPSBinObjGeneric obj11;
  29.     DPSBinObjGeneric obj12;
  30.     DPSBinObjGeneric obj13;
  31.     DPSBinObjGeneric obj14;
  32.     DPSBinObjGeneric obj15;
  33.     DPSBinObjGeneric obj16;
  34.     DPSBinObjGeneric obj17;
  35.     DPSBinObjReal obj18;
  36.     DPSBinObjReal obj19;
  37.     DPSBinObjGeneric obj20;
  38.     DPSBinObjGeneric obj21;
  39.     DPSBinObjGeneric obj22;
  40.     DPSBinObjGeneric obj23;
  41.     DPSBinObjGeneric obj24;
  42.     DPSBinObjGeneric obj25;
  43.     DPSBinObjGeneric obj26;
  44.     DPSBinObjGeneric obj27;
  45.     DPSBinObjGeneric obj28;
  46.     DPSBinObjGeneric obj29;
  47.     DPSBinObjGeneric obj30;
  48.     DPSBinObjGeneric obj31;
  49.     DPSBinObjGeneric obj32;
  50.     DPSBinObjGeneric obj33;
  51.     DPSBinObjGeneric obj34;
  52.     DPSBinObjGeneric obj35;
  53.     DPSBinObjGeneric obj36;
  54.     DPSBinObjGeneric obj37;
  55.     DPSBinObjGeneric obj38;
  56.     DPSBinObjGeneric obj39;
  57.     DPSBinObjGeneric obj40;
  58.     DPSBinObjGeneric obj41;
  59.     DPSBinObjGeneric obj42;
  60.     DPSBinObjGeneric obj43;
  61.     DPSBinObjGeneric obj44;
  62.     DPSBinObjGeneric obj45;
  63.     DPSBinObjGeneric obj46;
  64.     DPSBinObjGeneric obj47;
  65.     DPSBinObjGeneric obj48;
  66.     DPSBinObjGeneric obj49;
  67.     DPSBinObjGeneric obj50;
  68.     DPSBinObjGeneric obj51;
  69.     DPSBinObjReal obj52;
  70.     DPSBinObjGeneric obj53;
  71.     DPSBinObjGeneric obj54;
  72.     DPSBinObjGeneric obj55;
  73.     DPSBinObjGeneric obj56;
  74.     DPSBinObjGeneric obj57;
  75.     DPSBinObjGeneric obj58;
  76.     char obj59[7];
  77.     char obj60[37];
  78.     char obj61[31];
  79.     } _dpsQ;
  80.   static const _dpsQ _dpsStat = {
  81.     DPS_DEF_TOKENTYPE, 49, 551,
  82.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 78},    /* gsave */
  83.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: xscale */
  84.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: yscale */
  85.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 139},    /* scale */
  86.     {DPS_LITERAL|DPS_INT, 0, 0, 108},
  87.     {DPS_LITERAL|DPS_INT, 0, 0, 132},
  88.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 173},    /* translate */
  89.     {DPS_LITERAL|DPS_NAME, 0, DPSSYSNAME, 210},    /* Times-Italic */
  90.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 67},    /* findfont */
  91.     {DPS_LITERAL|DPS_INT, 0, 0, 80},
  92.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 140},    /* scalefont */
  93.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 149},    /* setfont */
  94.     {DPS_LITERAL|DPS_NAME, 0, 0, 0},    /* printIt */
  95.     {DPS_EXEC|DPS_ARRAY, 0, 5, 432},
  96.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 51},    /* def */
  97.     {DPS_LITERAL|DPS_INT, 0, 0, 22},
  98.     {DPS_LITERAL|DPS_INT, 0, 0, 0},
  99.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 173},    /* translate */
  100.     {DPS_LITERAL|DPS_REAL, 0, 0, .98},
  101.     {DPS_LITERAL|DPS_REAL, 0, 0, -.02},
  102.     {DPS_LITERAL|DPS_INT, 0, 0, 0},
  103.     {DPS_EXEC|DPS_ARRAY, 0, 5, 392},
  104.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 72},    /* for */
  105.     {DPS_LITERAL|DPS_INT, 0, 0, 2},
  106.     {DPS_LITERAL|DPS_INT, 0, 0, 3},
  107.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 54},    /* div */
  108.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 150},    /* setgray */
  109.     {DPS_EXEC|DPS_NAME, 0, 0, 0},    /* printIt */
  110.     {DPS_LITERAL|DPS_INT, 0, 0, -4},
  111.     {DPS_LITERAL|DPS_INT, 0, 0, -54},
  112.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 107},    /* moveto */
  113.     {DPS_LITERAL|DPS_NAME, 0, DPSSYSNAME, 211},    /* Times-Roman */
  114.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 67},    /* findfont */
  115.     {DPS_LITERAL|DPS_INT, 0, 0, 24},
  116.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 140},    /* scalefont */
  117.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 149},    /* setfont */
  118.     {DPS_LITERAL|DPS_STRING, 0, 31, 516},
  119.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 160},    /* show */
  120.     {DPS_LITERAL|DPS_INT, 0, 0, -44},
  121.     {DPS_LITERAL|DPS_INT, 0, 0, -84},
  122.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 107},    /* moveto */
  123.     {DPS_LITERAL|DPS_NAME, 0, DPSSYSNAME, 211},    /* Times-Roman */
  124.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 67},    /* findfont */
  125.     {DPS_LITERAL|DPS_INT, 0, 0, 24},
  126.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 140},    /* scalefont */
  127.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 149},    /* setfont */
  128.     {DPS_LITERAL|DPS_STRING, 0, 37, 479},
  129.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 160},    /* show */
  130.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 77},    /* grestore */
  131.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 150},    /* setgray */
  132.     {DPS_EXEC|DPS_NAME, 0, 0, 0},    /* printIt */
  133.     {DPS_LITERAL|DPS_INT, 0, 0, -1},
  134.     {DPS_LITERAL|DPS_REAL, 0, 0, .5},
  135.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 173},    /* translate */
  136.     {DPS_LITERAL|DPS_INT, 0, 0, 0},
  137.     {DPS_LITERAL|DPS_INT, 0, 0, 0},
  138.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 107},    /* moveto */
  139.     {DPS_LITERAL|DPS_STRING, 0, 7, 472},
  140.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 160},    /* show */
  141.     {'n','x','y','V','i','e','w'},
  142.     {'C','l','i','c','k',' ','R','I','G','H','T',' ','m','o','u','s','e',' ','b','u','t','t','o','n',' ','t','o',' ','l','o','a','d',' ','d','a','t','a'},
  143.     {'I','n',' ',' ','I','n','t','e','r','f','a','c','e',' ','B','u','i','l','d','e','r',' ','T','e','s','t','M','o','d','e',','},
  144.     }; /* _dpsQ */
  145.   _dpsQ _dpsF;    /* local copy  */
  146.   register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
  147.   register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
  148.   static long int _dpsCodes[3] = {-1};
  149.   {
  150. if (_dpsCodes[0] < 0) {
  151.     static const char * const _dps_names[] = {
  152.     "printIt",
  153.     (char *) 0 ,
  154.     (char *) 0 };
  155.     long int *_dps_nameVals[3];
  156.     _dps_nameVals[0] = &_dpsCodes[0];
  157.     _dps_nameVals[1] = &_dpsCodes[1];
  158.     _dps_nameVals[2] = &_dpsCodes[2];
  159.  
  160.     DPSMapNames(_dpsCurCtxt, 3, _dps_names, _dps_nameVals);
  161.     }
  162.   }
  163.  
  164.   _dpsF = _dpsStat;    /* assign automatic variable */
  165.  
  166.   _dpsP[1].val.realVal = xscale;
  167.   _dpsP[2].val.realVal = yscale;
  168.   _dpsP[12].val.nameVal = _dpsCodes[0];
  169.   _dpsP[50].val.nameVal = _dpsCodes[1];
  170.   _dpsP[27].val.nameVal = _dpsCodes[2];
  171.   DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,551);
  172. }
  173. #line 23 "title.psw"
  174.  
  175.